<?php

namespace App\Http\Controllers\Api\WeChat;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class WeChatController extends Controller
{
   	public function serve(Request $request){
   		$app = app('wechat.mini_program');

   		$app->server->push(function($message){
   			return "欢迎使用微信小程序";
   		});

   		return $app->server->serve();

   		// return "success";
   	}
}
